home *** CD-ROM | disk | FTP | other *** search
- Hi all,
- this is a port of patch-2.0.12g8 (GNU version 12.8 of patch 2.0)
-
- It was compiled with gcc 2.3.1 and the mintlibs pl 26, using the
- -mbaserel and -mpcrel options, so it should be sharable under MiNT.
- (Not that you'd be likely to use two patches simultaneously...)
-
- This is the second port of patch I made in two weeks. The reason for this
- is that the CR / CR+LF bug bit me. If a file was in MS-DOS format and the
- patch in Unix format (or the other way round), patch would refuse to work,
- as the files did not match. While patch could be forced to work by using
- the -l option (ignore all whitespace differences), the resulting file
- would be in mixed MS-DOS and Unix format. Pure-C hates this, gcc ignores
- this kind of stuff. Editors often complain.
-
- Basically, there are two solutions to this problem:
- - Force the files and the patch to be in the same format.
- This is what I do when patch complains; I don't use the -l option.
- In this case, you should use the normal version of patch, 'patch.ttp'.
- - Change patch to ignore such input differences and write out files
- in either MS-DOS or UNIX format, according to your UNIXMODE environment
- variable. As patch normally reads long chunks of file in binary mode,
- this would be hard to fix. I took advantage of another option: patch
- resorts to what it calls 'plan B' when files are too long, and reads
- all files line by line, using fgets() and fputs(). So I forced patch
- to always use plan B, even though this is somewhat slower and forces
- the use of temporary files.
- If you won't unx2dos your files, you should use the 'plan B' version
- of patch, 'bpatch.ttp'.
-
- The file `patch.man' is a manual page for the patch command. A full manual
- for patch, diff and cmp is available with the diff 2.1 package.
-
- Bug-reports, comments, thanks or flames to:
- Hildo Biersma
- boender@dutiws.twi.tudelft.nl
-